package com.rustic.server.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * 表[user]对应UpdateDTO类
 *
 * @author auto
 */

@Data
public class MobileDTO {

    @ApiModelProperty(value = "手机号", dataType = "String", required = true)
    @NotEmpty(message = "手机号不可为空")
    private String mobile;

    /**
     * 手机区号id
     */
    @ApiModelProperty(value = "手机区号", dataType = "String")
    @Min(value = 1, message = "手机区号不可为空")
    private int nationalityId;

}
